package Chapter07.Homework.H20212025;

public class Zhandouji extends Aircraft {
    private int warhead;//弹头数
    public void show(){
        System.out.println("客机的重量"+getWeight()+",高度"+getHeight()+",弹头数"+warhead);
    }
    public void shoot(){
        System.out.println("发射导弹");
    }
    public void low(){
        System.out.println("低空盘旋");
    }
    @Override
    public void fly() {
        super.fly();
        System.out.println("正常");
    }

    @Override
    public void jiasu() {
        super.jiasu();
        System.out.println("正常");
    }

    @Override
    public void jiangluo() {
        super.jiangluo();
        System.out.println("正常");
    }

    public Zhandouji(double weight, double height, int warhead) {
        super(weight, height);
        this.warhead=warhead;
    }

    public int getWarhead() {
        return warhead;
    }

    public void setWarhead(int warhead) {
        this.warhead = warhead;
    }
}
